package cn.edu.neu.studentmsg_java.dao;

import cn.edu.neu.studentmsg_java.model.Selection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SelectionDao {

    List<Selection> selectSelectionPartByStudentId(Selection selection);

    int insertSelectionByStudentId(@Param("student_id") Integer student_id, @Param("course_id") Integer course_id);

    int deleteSelectionByCourseIdAndStudentId(Selection selection);

    int deleteSelectionByStudentId(Integer student_id);

    int updateSelectionFinalScore(Selection selection);
}
